package com.sinosoft.front.service;

public class ProposalSaveServicePortTypeProxy implements com.sinosoft.front.service.ProposalSaveServicePortType {
  private String _endpoint = null;
  private com.sinosoft.front.service.ProposalSaveServicePortType proposalSaveServicePortType = null;
  
  public ProposalSaveServicePortTypeProxy() {
    _initProposalSaveServicePortTypeProxy();
  }
  
  public ProposalSaveServicePortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initProposalSaveServicePortTypeProxy();
  }
  
  private void _initProposalSaveServicePortTypeProxy() {
    try {
      proposalSaveServicePortType = (new com.sinosoft.front.service.ProposalSaveServiceLocator()).getProposalSaveServiceHttpSoap11Endpoint();
      if (proposalSaveServicePortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)proposalSaveServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)proposalSaveServicePortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (proposalSaveServicePortType != null)
      ((javax.xml.rpc.Stub)proposalSaveServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.sinosoft.front.service.ProposalSaveServicePortType getProposalSaveServicePortType() {
    if (proposalSaveServicePortType == null)
      _initProposalSaveServicePortTypeProxy();
    return proposalSaveServicePortType;
  }
  
  public com.sinosoft.front.dto.xsd.ProposalSaveResponse proposalSave(com.sinosoft.front.dto.xsd.ProposalSaveRequest request) throws java.rmi.RemoteException{
    if (proposalSaveServicePortType == null)
      _initProposalSaveServicePortTypeProxy();
    return proposalSaveServicePortType.proposalSave(request);
  }
  
  public void setProposalSaveTpInterface(com.sinosoft.front.busInterface.xsd.ProposalSaveTpInterface proposalSaveTpInterface) throws java.rmi.RemoteException{
    if (proposalSaveServicePortType == null)
      _initProposalSaveServicePortTypeProxy();
    proposalSaveServicePortType.setProposalSaveTpInterface(proposalSaveTpInterface);
  }
  
  public com.sinosoft.front.busInterface.xsd.ProposalSaveTpInterface getProposalSaveTpInterface() throws java.rmi.RemoteException{
    if (proposalSaveServicePortType == null)
      _initProposalSaveServicePortTypeProxy();
    return proposalSaveServicePortType.getProposalSaveTpInterface();
  }
  
  public com.sinosoft.front.busInterface.xsd.ProposalSaveTpCheckInterface getProposalSaveTpCheckInterface() throws java.rmi.RemoteException{
    if (proposalSaveServicePortType == null)
      _initProposalSaveServicePortTypeProxy();
    return proposalSaveServicePortType.getProposalSaveTpCheckInterface();
  }
  
  public void setProposalSaveTpCheckInterface(com.sinosoft.front.busInterface.xsd.ProposalSaveTpCheckInterface proposalSaveTpCheckInterface) throws java.rmi.RemoteException{
    if (proposalSaveServicePortType == null)
      _initProposalSaveServicePortTypeProxy();
    proposalSaveServicePortType.setProposalSaveTpCheckInterface(proposalSaveTpCheckInterface);
  }
  
  
}